Repository navigation
ci(testnet): pruned-storage scenarios - #23
Merged
Merged
Conversation
With PRUNE_NODE (workflow input prune_node) that node runs with a checkpoint every 1'000 blocks, checkpoint_keep=2 and prune_keep_blocks=300. The run fails if it never prunes, and reports the pruning log lines and every node's block DB size; its state digest is checked as for any node. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With JOIN_PRUNED_AT (workflow input join_pruned_at) one more node, in nobody's hosts or trusted list and without funds or checkpoints, starts once the network reaches that sequence. It syncs every block from block 0 through the normal block requests, validates and applies them, saves a checkpoint every 1'000 blocks and prunes behind itself (prune_keep_blocks=300). The run waits for it to reach the target too, requires it to have pruned, and checks its state digests with the others'. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A node that dies is now reported with its exit status (and signal), and with core dumps on (kernel.core_pattern into the run directory, ulimit -c unlimited) the run prints the backtrace of every core file with gdb. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this adds
Test-network scenarios for pruned storage (#22). Both are off by default.
prune_node/PRUNE_NODEcheckpoint_keep=2andprune_keep_blocks=300. Combined withrestart_at, it is restarted from its pruned storage.join_pruned_at/JOIN_PRUNED_ATThe run fails if a pruned node never prunes. It reports each pruned node's pruning log lines and its block DB file by file, next to a full node's. As for every node, the state digests of the pruned nodes must match the others'.
Runs (with #22)
blockchain.dbis 1.6 MB, against 4.4 MB on a full node.blockchain.dbis 2.0 MB against 6.3 MB, and all 8 nodes' digests match to block 4,600.🤖 Generated with Claude Code